package com.bdqn.struts.service.impl;

import com.bdqn.struts.dao.LoginDao;
import com.bdqn.struts.dao.impl.LoginDaoImpl;
import com.bdqn.struts.entity.Login;
import com.bdqn.struts.service.LoginService;

import java.util.List;

public class LoginServiceImpl implements LoginService {
    LoginDao loginDao;

    @Override
    public Login getLogin(String userName, String passWord) {
        return loginDao.getLogin(userName,passWord);
    }

    @Override
    public Login getLoginByTem(String username, String Password) {
        return loginDao.getLoginByTem(username,Password);
    }

    @Override
    public List<Login> getAllLogin() {
        return loginDao.getAllLogin();
    }

    @Override
    public void save(Login login) {
        loginDao.save(login);
    }

    public LoginDao getLoginDao() {
        return loginDao;
    }

    public void setLoginDao(LoginDao loginDao) {
        this.loginDao = loginDao;
    }
}
